Why is it showing that the function is not defined